package modul

import (
	"encoding/json"
	"gitee.com/yutiandou/wdtools/wdstruct"
)

var textlist = wdstruct.NewObjectPool(2048,new(SendText_Requ))

type SendText_Requ struct {
	WID string `json:"wId"`
	WCID string `json:"wcId"`
	Content string `json:"content"`
}
func GetText_Request(wid,wcid,context string)(data []byte){
	s := textlist.Get().(*SendText_Requ)
	s.WID = wid
	s.WCID = wcid
	s.Content = context
	data,_=json.Marshal(s)
	textlist.Give(s)
	return
}
func (r * SendText_Requ)New()interface{}{
	return new(SendText_Requ)
}
func (r * SendText_Requ)Recycle(obj  interface{}) {
}

var mvlist = wdstruct.NewObjectPool(1024,new(SendMV_Requ))

type SendMV_Requ struct {
	WID string `json:"wId"`
	WCID string `json:"wcId"`
	Content string `json:"content"`
}
func GetMV_Request(wid,wcid,content string)(data []byte){
	s := mvlist.Get().(*SendMV_Requ)
	s.WID = wid
	s.WCID = wcid
	s.Content = content
	data,_=json.Marshal(s)
	mvlist.Give(s)
	return
}
func (r * SendMV_Requ)New()interface{}{
	return new(SendMV_Requ)
}
func (r * SendMV_Requ)Recycle(obj  interface{}) {
}

var voicelist = wdstruct.NewObjectPool(1024,new(SendVoice_Requ))
type SendVoice_Requ struct {
	WID string `json:"wId"`
	WCID string `json:"wcId"`
	Content string `json:"content"`
	Length int `json:"length"`
}
func GetVoice_Request(wid,wcid,content string,len int)(data []byte){
	s := voicelist.Get().(*SendVoice_Requ)
	s.WID = wid
	s.WCID = wcid
	s.Content = content
	s.Length = len
	data,_=json.Marshal(s)
	voicelist.Give(s)
	return
}
func (r * SendVoice_Requ)New()interface{}{
	return new(SendVoice_Requ)
}
func (r * SendVoice_Requ)Recycle(obj  interface{}) {
}

var downimagelist = wdstruct.NewObjectPool(1024,new(SendImage_Down))
type SendImage_Down struct {
	WID string `json:"wId"`
	MsgId int64 `json:"msgId"`
	Content string `json:"content"`
	FromUser string `json:"fromUser"`
	ToUser string `json:"toUser"`
}
func GetImage_Down(wid,content,fromuser,touser string,msgid int64)(data []byte){
	s := downimagelist.Get().(*SendImage_Down)
	s.WID = wid
	s.MsgId = msgid
	s.Content = content
	s.FromUser = fromuser
	s.ToUser = touser
	data,_=json.Marshal(s)
	downimagelist.Give(s)
	return
}
func (r * SendImage_Down)New()interface{}{
	return new(SendImage_Down)
}
func (r * SendImage_Down)Recycle(obj  interface{}) {
}


var downvoicelist = wdstruct.NewObjectPool(1024,new(SendVoice_Down))
type SendVoice_Down struct {
	WID string `json:"wId"`
	MsgId int64 `json:"msgId"`
	Length int64 `json:"length"`
}
func GetVoice_Down(wid string,msgid ,length int64)(data []byte){
	s := downvoicelist.Get().(*SendVoice_Down)
	s.WID = wid
	s.MsgId = msgid
	s.Length = length
	data,_=json.Marshal(s)
	downvoicelist.Give(s)
	return
}
func (r * SendVoice_Down)New()interface{}{
	return new(SendVoice_Down)
}
func (r * SendVoice_Down)Recycle(obj  interface{}) {
}

var downmvlist = wdstruct.NewObjectPool(1024,new(SendMV_Down))
type SendMV_Down struct {
	WID string `json:"wId"`
	MsgId int64 `json:"msgId"`
	Content string `json:"content"`
}
func GetMV_Down(wid,content string,msgid int64)(data []byte){
	s := downmvlist.Get().(*SendMV_Down)
	s.WID = wid
	s.MsgId = msgid
	s.Content = content
	data,_=json.Marshal(s)
	downmvlist.Give(s)
	return
}
func (r * SendMV_Down)New()interface{}{
	return new(SendMV_Down)
}
func (r * SendMV_Down)Recycle(obj  interface{}) {
}